package net.modul.dept.service;

import com.beyond.exception.XException;

import net.common.service.GeneralService;
import net.modul.dept.dao.EmployeeDao;
import net.modul.dept.dao.impl.EmployeeDaoImpl;
import net.modul.dept.vo.EmployeeVo;

/**
 * 员工查找业务处理
 * 
 * @author Administrator
 * 
 */
public class EmployeeFindService extends GeneralService {

	private EmployeeVo bean;
	private Integer id;

	@Override
	public void execute() throws XException {
		EmployeeDao dao = new EmployeeDaoImpl();
		try{
		bean = dao.find(id);
		}catch(Exception e){
			throw new XException(e);
		}
	}

	public EmployeeVo getBean() {
		return bean;
	}

	public void setId(Integer id) {
		this.id = id;
	}

}
